package cloudEntity.enumation;

import lombok.Getter;

/**
 * @program: Smart School
 * @ClassName ClassEnum
 * @description:
 * @author: 陈智博
 * @create: 2025-05-17 00:00
 * @Version 1.0
 **/
@Getter
public enum FacultyEnum {

    ComputerNetworkMajor("计算机网络专业",1),
    EarlyChildHoodCareMajor("幼保专业",2),
    DefaultNull("暂无",127);

    private final String sysFacultyName;
    private final Integer sysFacultyType;

    FacultyEnum(String sysFacultyName, Integer sysFacultyType) {
        this.sysFacultyName = sysFacultyName;
        this.sysFacultyType = sysFacultyType;
    }

    public static String getDescriptionByValue(Integer value) {
        for (FacultyEnum status : FacultyEnum.values()) {
            if (status.getSysFacultyType().equals(value)) {
                return status.getSysFacultyName();
            }
        }
        return null; // 或者抛出异常，根据需求而定
    }

}
